<html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>等待页面</title>
</head>

<body>
<div>
    <h1>您的密码是:</h1>
    <h1 th:text="${pwd} "></h1>
</div>
</body>

<script type="text/javascript">
    function getLabel(id) {
        return document.getElementById(id);
    }
    function changeSec() {
        //得到myspan值，每秒减一，会进行隐士转换
        getLabel('myspan').innerText=getLabel('myspan').innerText-1;
    }
    var mytime = setInterval("changeSec()",1000);
    //五秒后跳转
    function tiao() {
        clearInterval(mytime);
        //window.open("./welcome.html","_self");
        window.location.href = "http://localhost:8080";
    }

    setTimeout("tiao()",5000);
</script>
</html>